import request from '@/api/request';
import { apiClusterJava } from '@/api/root';

export const getPositionTagList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/positionTagList',
    data
  );
};

export const getPositionTagTree = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/positionTagTree',
    data
  );
};

export const getPositionListByTagId = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/positionListByTagId',
    data
  );
};

export const getPositionTagSonList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/positionTagSonList',
    data
  );
};

export const getAllPositionTagTree = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/getAllPositionTagTree',
    data
  );
};

export const getpositionTagAndParentList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/positionTagAndParentList',
    data
  );
};
